package com.kymatrix.kycarbon.xsmd.common.util;

import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * @author liujie
 * @date 2024-03-13
 */

public class TreeNode<T> {

    @ApiModelProperty(value = "id")
    protected String id;

    @ApiModelProperty("子节点列表")
    protected List<T> childrenList = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<T> getChildrenList() {
        return childrenList;
    }

    public void setChildrenList(List<T> childrenList) {
        this.childrenList = childrenList;
    }
}
